﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Bootstrap.MVC.Infrastructure.ClientEvent;
using Bootstrap.MVC.Widgets;

namespace Bootstrap.Web.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            var model = new List<IButtonModel> { 
                    new ButtonModel { Caption="button 1", Icon="icon-edit", Events = new ClientEventManager().Register("onclick", "clickMe")}, 
                    new ButtonModel { Caption="button 2"},
                    new ButtonModel { Caption="button 3"},
                    new ButtonModel { Caption="button 4"}
            };

            return View(model);
        }

    }
}
